How to Install apache2 software package in Debian 9 (Stretch)

How to Install apache2 software package in Debian 9 (Stretch)

apache2 software package provides Apache HTTP Server, you can install in your Debian 9 (Stretch) by running the commands given below on the terminal,

$ sudo apt-get update
$ sudo apt-get install apache2 

apache2 is installed in your system.

Make ensure the apache2 package were installed using the commands given below,

$ sudo dpkg-query -l | grep apache2 *

You will get with apache2 package name, version, architecture and description in a table

apache2 package basic information:

Distro Debian 9 stretch
Section Web Servers
Package apache2
Version 2.4.23-5
Description Apache HTTP Server
Sub Section httpd


See Also, How to uninstall or remove apache2 software package from Debian 9 (Stretch)?